<%--
  Created by IntelliJ IDEA.
  User: glls
  Date: 2022/3/30
  Time: 10:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="${pageContext.request.contextPath}/doStudentUpdate" method="post" >
    <table border="1px">
        <tr>
            <td>姓名:</td>
            <td>
                <input name="name" type="text" size="30px" value="${student.name}" placeholder="请输入用户名，用户名不能是中文">
                <input type="hidden" value="${student.id}" name="id">
            </td>
        </tr>


        <tr>
            <td>性别:</td>
            <td>
                <input type="radio" name="sex" value="男" ${student.sex=='男'?'checked':''}> 男
                <input type="radio" name="sex" value="女" ${student.sex=='女'?'checked':''}> 女
            </td>
        </tr>
        <tr>
            <td>生日:</td>
            <td>
                <input type="text" name="birthday" value = "${student.birthday}">
            </td>
        </tr>

        <tr>
            <td>联系方式:</td>
            <td>
                <input type="text" name="phone" value="${student.phone}">
            </td>
        </tr>
        <tr>
            <td>联系地址:</td>
            <td>
                <input type="text" name="address" value="${student.address}">
            </td>
        </tr>


        <tr>
            <td>爱好:</td>
            <td>
                <input type="text" name="hobby" value="${student.hobby}">
            </td>
        </tr>



        <tr align="center">
            <td colspan="2">
                <input type="submit" value="修改">

            </td>
        </tr>
    </table>

</form>
</body>
</html>
